package com.ruoyi.service.impl;


import com.ruoyi.mapper.DeviceInfoMapper;
import com.ruoyi.domain.DeviceInfo;
import com.ruoyi.service.DeviceInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeviceInfoServiceImp implements DeviceInfoService {

    @Resource
    DeviceInfoMapper lotMapper;

    @Override
    public int add(DeviceInfo sensor) {
        return lotMapper.add(sensor);
    }

    @Override
    public List<DeviceInfo> getCurrentLot(String sensorId, int size) {
        return lotMapper.getCurrentLot(sensorId,size);
    }
}
